#    Copyright 2012 Tri-County Electric Cooperative, St. Matthews, South Carolina
#    This file is part of COOPWeb.
#    COOPWeb is free software: you can redistribute it and/or modify
#    it under the terms of the GNU General Public License as published by
#    the Free Software Foundation, either version 3 of the License, or
#    (at your option) any later version.
#    COOPWeb is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU General Public License for more details.
#    You should have received a copy of the GNU General Public License
#    along with COOPWeb.  If not, see <http://www.gnu.org/licenses/>.


#************************BEGIN Add Include Files to Path************************
import sys
NeededPaths=['/opt/coopweb/djangoproject/include', '/opt/coopweb/djangoproject']
for path in NeededPaths:
    if(not path in sys.path):
        sys.path.append(path)
#************************END   Add Include Files to Path************************

from django.conf.urls.defaults import *
import views
import djangoproject

from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',





    (r'^meter/ping/results/', 'djangoproject.views.Meter.PingResults'),
    (r'^meter/ping/', 'djangoproject.views.Meter.Ping'),

    #COOPTALK related views
    (r'^cooptalk/', 'djangoproject.views.COOPTalk.COOPTalkView'),
    #(r'^cooptalk/meterread/(\d+)/', 'djangoproject.views.COOPTalk.COOPTalkOutInitiateMeterReadByMeterNumber'),
    #(r'^cooptalk/getmeterread/(\d+)/', 'djangoproject.views.COOPTalk.COOPTalkOutGetMeterReadByMeterNumber'),
    #(r'^cooptalk/viewtestresults/', 'djangoproject.views.COOPTalk.ViewTestResults'),

    (r'^createbackup/', 'djangoproject.views.ManagementConsole.CreateBackup'),

    (r'^alarm/', 'djangoproject.views.Alarm.AlarmTable'),

    (r'^logout/', 'djangoproject.views.Menu.Logout'),

    (r'^', 'djangoproject.views.Menu.index'),
    (r'^admin/', include(admin.site.urls)),    
    (r'^', 'djangoproject.views.Menu.index'),
)

